package banking;

public class Account {
    private double balance;

    public double getBalance() {
        return balance;
    }

    public Account(double init_balance) {
        this.balance=init_balance;
    }
    public boolean deposit(double amt) {
        balance+=amt;
        return true;
    }

    public boolean withdraw(double amt) {
        if(balance>=amt){
            balance-=amt;
            return true;

        }else{
            return false;
        }

    }
}
